<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 地区模型
// +----------------------------------------------------------------------
namespace app\api\model;

use think\Model;

class VipCardBill extends ApiModel
{
    protected $name = 'vip_card_bill';

    public function addBill($member_id,$name,$type,$amount){
      return self::insert([
          'member_id' => $member_id,
          'name' => $name,
          'type' => $type,
          'amount' => $amount,
          'create_time' => time(),
      ]);
    }
}
